module ConceptHelper
   def map_form
     from = content_tag "div", "[CHUNKY CONCEPT]", :class => "map_label"
     to = content_tag "div", "[BACON CONCEPT]", :class => "map_label"
     comments_label = content_tag "div", "Comments:", :class => "map_label"
     comments_area = text_area_tag "map_comments", "I'm some comment"
     comments_box = content_tag "div", comments_label << comments_area, :class => "map_comments"
     map_button = submit_tag "Map"
     cancel_button = button_to_function "Cancel", "closeModal()"
     button_box = content_tag "div", map_button << cancel_button

     modal_box content_tag("div", from << to << comments_box << button_box, :id => "map_form_box")
   end

   def concept_table_small(concept)
     "<table class='map_concept_table'>
        <tr>
          <th class='frag_col'>Fragment</th>
          <th>Concept Name</th>
        </tr>
        <tr>
          <td>#{concept.fragment.name}</td>
          <td>#{concept.name}</td>
        </tr>
      </table>"
   end
end
